package com.gjintel.framework.role.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;

/**
 * @description 项目状态 操作类 
 * @author wwang 
 * @date 2016-9-30
 */
@Entity
@Table(name="t_proj_operation")
public class ProjectOperation {
	private String id;
	private String operaName;//操作名称
	private String actionUrl;//操作url
	private String comment;//说明
	private Integer projectStatus;//项目状态
	private Integer seqs;//排序
	private String roleId;//
	private String workflowKey;//流程key
	
	
	public ProjectOperation() {
	}

	
	
	
	public ProjectOperation(String id, String operaName, String actionUrl,
			String comment, Integer projectStatus, Integer seqs, String roleId) {
		this.id = id;
		this.operaName = operaName;
		this.actionUrl = actionUrl;
		this.comment = comment;
		this.projectStatus = projectStatus;
		this.seqs = seqs;
		this.roleId = roleId;
	}




	@Id
	@GeneratedValue(generator = "UIDGenerator")
	@GenericGenerator(name = "UIDGenerator", strategy = "org.hibernate.id.UUIDHexGenerator")
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name="opera_name")
	public String getOperaName() {
		return operaName;
	}

	public void setOperaName(String operaName) {
		this.operaName = operaName;
	}

	@Column(name="action_url")
	public String getActionUrl() {
		return actionUrl;
	}

	public void setActionUrl(String actionUrl) {
		this.actionUrl = actionUrl;
	}

	@Column(name="comment")
	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	@Column(name="proj_status")
	public Integer getProjectStatus() {
		return projectStatus;
	}

	public void setProjectStatus(Integer projectStatus) {
		this.projectStatus = projectStatus;
	}

	@Column(name="seqs")
	public Integer getSeqs() {
		return seqs;
	}

	public void setSeqs(Integer seqs) {
		this.seqs = seqs;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	@Transient
	public String getRoleId() {
		return roleId;
	}

	@Column(name="workflow_key")
	public String getWorkflowKey() {
		return workflowKey;
	}

	public void setWorkflowKey(String workflowKey) {
		this.workflowKey = workflowKey;
	}
	
	
}
